Set options

knitr::opts_chunk$set(
  warning = FALSE, # show warnings during codebook generation
  message = FALSE, # show messages during codebook generation
  error = TRUE, # do not interrupt codebook generation in case of errors,
                # usually better for debugging
  echo = TRUE  # show R code
)
ggplot2::theme_set(ggplot2::theme_bw())

Prepare codebook

library(codebook)
library(labelled)

# Load data
codebook_data <- vroom::vroom(here::here("Data/Processed/Exp2/Kan_Processed_Exp2_Main_Rt_data.tsv"))

# Label variables
var_label(codebook_data$participant_id) <- "Unique identifier of the participant"
var_label(codebook_data$lab) <- "Unique identifier of the data collection site"
var_label(codebook_data$trial_id) <- "Unique identifier of a trial"
var_label(codebook_data$stim_type) <- "Congruency of the Stroop trial"
var_label(codebook_data$stimulus) <- "Word of the Stroop trial"
var_label(codebook_data$stim_color) <- "Ink of the Stroop trial"
var_label(codebook_data$loop_num) <- "Unique identifier of pseudo randomized stimulus set that was shown to the participant"
var_label(codebook_data$conflict_condition) <- "Congruency of the previous and current trial (cc, ii, ci, ic)"
var_label(codebook_data$response_time) <- "Response time to the Stroop trial in milliseconds"
var_label(codebook_data$is_previous_congruent) <- "Congruency of the previous trial"
var_label(codebook_data$is_congruent) <- "Congruency of the Stroop trial"
var_label(codebook_data$is_correct) <- "Correctness of the Stroop trial"
var_label(codebook_data$mean_reversal) <- "Mean number of reversals"
var_label(codebook_data$reversal_group) <- "Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores"
var_label(codebook_data$mean_rt) <- "Mean reaction time of the parcipant"
var_label(codebook_data$sd_rt) <- "Standard deviation of the reaction time of the participant"
var_label(codebook_data$cutoff_value_high) <- "Upper cutoff value for the trial"
var_label(codebook_data$cutoff_value_low) <- "Lower cutoff value for the trial"
var_label(codebook_data$is_outlier) <- "Flagging whether the trials' original response time was a low outlier (2), a high outlier (1) or not an outlier (0)"

Create codebook

codebook(codebook_data)

Metadata

Description

Dataset name: codebook_data

The dataset has N=6447 rows and 19 columns. 6447 rows have no missing values on any column.

Metadata for search engines

  • Date published: 2021-01-28
x
participant_id
lab
loop_num
trial_id
conflict_condition
stim_type
stimulus
stim_color
is_correct
response_time
is_previous_congruent
is_congruent
mean_reversal
reversal_group
mean_rt
sd_rt
cutoff_value_high
cutoff_value_low
is_outlier

#Variables

participant_id

Unique identifier of the participant

Distribution

Distribution of values for participant_id

Distribution of values for participant_id

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
participant_id Unique identifier of the participant character 0 1 163 0 4 4 0

lab

Unique identifier of the data collection site

Distribution

Distribution of values for lab

Distribution of values for lab

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
lab Unique identifier of the data collection site character 0 1 1 0 5 5 0

loop_num

Unique identifier of pseudo randomized stimulus set that was shown to the participant

Distribution

Distribution of values for loop_num

Distribution of values for loop_num

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
loop_num Unique identifier of pseudo randomized stimulus set that was shown to the participant numeric 0 1 0 2 5 2.252676 1.799067 <U+2587><U+2583><U+2583><U+2583><U+2583>

trial_id

Unique identifier of a trial

Distribution

Distribution of values for trial_id

Distribution of values for trial_id

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
trial_id Unique identifier of a trial numeric 0 1 1 104 199 102.9986 57.31759 <U+2586><U+2587><U+2586><U+2587><U+2587>

conflict_condition

Congruency of the previous and current trial (cc, ii, ci, ic)

Distribution

Distribution of values for conflict_condition

Distribution of values for conflict_condition

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
conflict_condition Congruency of the previous and current trial (cc, ii, ci, ic) character 0 1 4 0 2 2 0

stim_type

Congruency of the Stroop trial

Distribution

Distribution of values for stim_type

Distribution of values for stim_type

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
stim_type Congruency of the Stroop trial character 0 1 2 0 9 11 0

stimulus

Word of the Stroop trial

Distribution

Distribution of values for stimulus

Distribution of values for stimulus

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
stimulus Word of the Stroop trial character 0 1 7 0 4 7 0

stim_color

Ink of the Stroop trial

Distribution

Distribution of values for stim_color

Distribution of values for stim_color

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
stim_color Ink of the Stroop trial character 0 1 3 0 4 7 0

is_correct

Correctness of the Stroop trial

Distribution

Distribution of values for is_correct

Distribution of values for is_correct

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
is_correct Correctness of the Stroop trial numeric 0 1 1 1 1 1 0 <U+2581><U+2581><U+2587><U+2581><U+2581>

response_time

Response time to the Stroop trial in milliseconds

Distribution

Distribution of values for response_time

Distribution of values for response_time

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
response_time Response time to the Stroop trial in milliseconds numeric 0 1 301 693 999 706.4962 141.2877 <U+2581><U+2585><U+2587><U+2586><U+2585>

is_previous_congruent

Congruency of the previous trial

Distribution

Distribution of values for is_previous_congruent

Distribution of values for is_previous_congruent

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
is_previous_congruent Congruency of the previous trial numeric 0 1 0 1 1 0.665736 0.4717691 <U+2585><U+2581><U+2581><U+2581><U+2587>

is_congruent

Congruency of the Stroop trial

Distribution

Distribution of values for is_congruent

Distribution of values for is_congruent

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
is_congruent Congruency of the Stroop trial numeric 0 1 0 0 1 0.4929425 0.499989 <U+2587><U+2581><U+2581><U+2581><U+2587>

mean_reversal

Mean number of reversals

Distribution

Distribution of values for mean_reversal

Distribution of values for mean_reversal

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
mean_reversal Mean number of reversals numeric 0 1 0 6.7 114 10.56733 13.86296 <U+2587><U+2581><U+2581><U+2581><U+2581>

reversal_group

Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores

Distribution

Distribution of values for reversal_group

Distribution of values for reversal_group

0 missing values.

Summary statistics

name label data_type n_missing complete_rate n_unique empty min max whitespace
reversal_group Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores character 0 1 2 0 3 4 0

mean_rt

Mean reaction time of the parcipant

Distribution

Distribution of values for mean_rt

Distribution of values for mean_rt

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
mean_rt Mean reaction time of the parcipant numeric 0 1 527 705 912 706.6248 75.456 <U+2582><U+2587><U+2587><U+2583><U+2582>

sd_rt

Standard deviation of the reaction time of the participant

Distribution

Distribution of values for sd_rt

Distribution of values for sd_rt

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
sd_rt Standard deviation of the reaction time of the participant numeric 0 1 67 118 180 119.8676 19.91099 <U+2582><U+2586><U+2587><U+2585><U+2581>

cutoff_value_high

Upper cutoff value for the trial

Distribution

Distribution of values for cutoff_value_high

Distribution of values for cutoff_value_high

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
cutoff_value_high Upper cutoff value for the trial numeric 0 1 715 1022 1217 1006.294 90.33202 <U+2581><U+2582><U+2586><U+2587><U+2582>

cutoff_value_low

Lower cutoff value for the trial

Distribution

Distribution of values for cutoff_value_low

Distribution of values for cutoff_value_low

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
cutoff_value_low Lower cutoff value for the trial numeric 0 1 146 388 745 406.9557 90.45957 <U+2581><U+2587><U+2586><U+2582><U+2581>

is_outlier

Flagging whether the trials’ original response time was a low outlier (2), a high outlier (1) or not an outlier (0)

Distribution

Distribution of values for is_outlier

Distribution of values for is_outlier

0 missing values.

Summary statistics

name label data_type n_missing complete_rate min median max mean sd hist
is_outlier Flagging whether the trials’ original response time was a low outlier (2), a high outlier (1) or not an outlier (0) numeric 0 1 0 0 2 0.0099271 0.119054 <U+2587><U+2581><U+2581><U+2581><U+2581>

Missingness report

Codebook table

JSON-LD metadata The following JSON-LD can be found by search engines, if you share this codebook publicly on the web.

{
  "name": "codebook_data",
  "datePublished": "2021-01-28",
  "description": "The dataset has N=6447 rows and 19 columns.\n6447 rows have no missing values on any column.\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name                  |label                                                                                                                        | n_missing|\n|:---------------------|:----------------------------------------------------------------------------------------------------------------------------|---------:|\n|participant_id        |Unique identifier of the participant                                                                                         |         0|\n|lab                   |Unique identifier of the data collection site                                                                                |         0|\n|loop_num              |Unique identifier of pseudo randomized stimulus set that was shown to the participant                                        |         0|\n|trial_id              |Unique identifier of a trial                                                                                                 |         0|\n|conflict_condition    |Congruency of the previous and current trial (cc, ii, ci, ic)                                                                |         0|\n|stim_type             |Congruency of the Stroop trial                                                                                               |         0|\n|stimulus              |Word of the Stroop trial                                                                                                     |         0|\n|stim_color            |Ink of the Stroop trial                                                                                                      |         0|\n|is_correct            |Correctness of the Stroop trial                                                                                              |         0|\n|response_time         |Response time to the Stroop trial in milliseconds                                                                            |         0|\n|is_previous_congruent |Congruency of the previous trial                                                                                             |         0|\n|is_congruent          |Congruency of the Stroop trial                                                                                               |         0|\n|mean_reversal         |Mean number of reversals                                                                                                     |         0|\n|reversal_group        |Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores |         0|\n|mean_rt               |Mean reaction time of the parcipant                                                                                          |         0|\n|sd_rt                 |Standard deviation of the reaction time of the participant                                                                   |         0|\n|cutoff_value_high     |Upper cutoff value for the trial                                                                                             |         0|\n|cutoff_value_low      |Lower cutoff value for the trial                                                                                             |         0|\n|is_outlier            |Flagging whether the trials' original response time was a low outlier (2), a high outlier (1) or not an outlier (0)          |         0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.2).",
  "keywords": ["participant_id", "lab", "loop_num", "trial_id", "conflict_condition", "stim_type", "stimulus", "stim_color", "is_correct", "response_time", "is_previous_congruent", "is_congruent", "mean_reversal", "reversal_group", "mean_rt", "sd_rt", "cutoff_value_high", "cutoff_value_low", "is_outlier"],
  "@context": "http://schema.org/",
  "@type": "Dataset",
  "variableMeasured": [
    {
      "name": "participant_id",
      "description": "Unique identifier of the participant",
      "@type": "propertyValue"
    },
    {
      "name": "lab",
      "description": "Unique identifier of the data collection site",
      "@type": "propertyValue"
    },
    {
      "name": "loop_num",
      "description": "Unique identifier of pseudo randomized stimulus set that was shown to the participant",
      "@type": "propertyValue"
    },
    {
      "name": "trial_id",
      "description": "Unique identifier of a trial",
      "@type": "propertyValue"
    },
    {
      "name": "conflict_condition",
      "description": "Congruency of the previous and current trial (cc, ii, ci, ic)",
      "@type": "propertyValue"
    },
    {
      "name": "stim_type",
      "description": "Congruency of the Stroop trial",
      "@type": "propertyValue"
    },
    {
      "name": "stimulus",
      "description": "Word of the Stroop trial",
      "@type": "propertyValue"
    },
    {
      "name": "stim_color",
      "description": "Ink of the Stroop trial",
      "@type": "propertyValue"
    },
    {
      "name": "is_correct",
      "description": "Correctness of the Stroop trial",
      "@type": "propertyValue"
    },
    {
      "name": "response_time",
      "description": "Response time to the Stroop trial in milliseconds",
      "@type": "propertyValue"
    },
    {
      "name": "is_previous_congruent",
      "description": "Congruency of the previous trial",
      "@type": "propertyValue"
    },
    {
      "name": "is_congruent",
      "description": "Congruency of the Stroop trial",
      "@type": "propertyValue"
    },
    {
      "name": "mean_reversal",
      "description": "Mean number of reversals",
      "@type": "propertyValue"
    },
    {
      "name": "reversal_group",
      "description": "Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores",
      "@type": "propertyValue"
    },
    {
      "name": "mean_rt",
      "description": "Mean reaction time of the parcipant",
      "@type": "propertyValue"
    },
    {
      "name": "sd_rt",
      "description": "Standard deviation of the reaction time of the participant",
      "@type": "propertyValue"
    },
    {
      "name": "cutoff_value_high",
      "description": "Upper cutoff value for the trial",
      "@type": "propertyValue"
    },
    {
      "name": "cutoff_value_low",
      "description": "Lower cutoff value for the trial",
      "@type": "propertyValue"
    },
    {
      "name": "is_outlier",
      "description": "Flagging whether the trials' original response time was a low outlier (2), a high outlier (1) or not an outlier (0)",
      "@type": "propertyValue"
    }
  ]
}`